package com.xiaoshuidi.cloud.module.report.dal.DO.report;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName(value = "report_fee_summary", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ReportFeeSummaryDO extends TenantBaseDO {
    private static final long serialVersionUID = 1L;

    /**
     * 编号，数据库自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 订单号
     */
    private Long orderId;
    /**
     * 流水号
     */
    private String flowNo;
    /**
     * 房间号
     */
    private Long roomId;
    /**
     * 房间名称
     */
    private String roomName;
    /**
     * 面积
     */
    private Double space;
    /**
     * 承租人
     */
    private String customerName;
    /**
     * 承租人编号
     */
    private Long memberId;
    /**
     * 交易方式
     */
    private String payMethod;

    /**
     * 到账时间
     */
    private LocalDateTime paymentDate;

    /**
     * 实收水费
     */
    private BigDecimal waterFeeAmount;
    /**
     * 实收电费
     */
    private BigDecimal electricityFeeAmount;
    /**
     * 实收停车费
     */
    private BigDecimal parkFeeAmount;
    /**
     * 实收其他
     */
    private BigDecimal otherFeeAmount;
    /**
     * 手续费率
     */
    private Double handlingFeeRate;
    /**
     * 收款手续费
     */
    private BigDecimal collectionFee;
    /**
     * 收款合计
     */
    private BigDecimal actualAmount;
}
